{% extends 'base.html' %}

{% block title %}
    注册页面
{% endblock %}

{% block head %}
<script src="{% static 'jquery/jquery-3.7.1.min.js' %}"></script>
<script src="{% static 'js/register.js' %}"></script>
{% endblock %}

{% block main %}
    <div style="max-width: 330px" class="m-auto">
        <h1>注册</h1>
        <form action="" method="post">
            {% csrf_token %}
            <div class="mb-3">
                <label for="username" class="form-label">用户名</label>
                    <input type="text" class="form-control" name="username" placeholder="用户名">
            </div>
            <div class="mb-3">
                <label for="password" class="form-label">密码</label>
                    <input type="password" class="form-control" placeholder="密码" name="password">
            </div>
            <div class="mb-3">
                <label for="email" class="form-label">邮箱</label>
                <div class="input-group mb-3">
                    <input type="email" name="email" class="form-control" placeholder="请输入邮箱"
                           aria-label="Recipient's username" aria-describedby="button-addon2">
                    <button class="btn btn-outline-secondary" type="button" id="captcha-btn">获取验证码</button>
                </div>
            </div>
            <div class="mb-3">
                <label for="captcha" class="form-label">验证码</label>
                    <input type="text" class="form-control" placeholder="验证码" name="captcha">
            </div>
            <button type="submit" class="btn btn-primary w-100">注册</button>
        </form>
    </div>
</main>
{% endblock %}
</head>
</html>